package gdut.imis.enums;

/**
 * @Description
 * @Author JiaFu
 * @Date 2023/4/7 21:55
 */

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum FamilyMemberRelationEnum {
    FATHER(0, "父亲"),
    MOTHER(1, "母亲"),
    BROTHER(2, "哥哥"),
    ELDER_SISTER(3, "姐姐"),
    YOUNGER_BROTHER(4, "弟弟"),
    YOUNGER_SISTER(5, "妹妹");

    @EnumValue
    private final int type;
    @JsonValue
    private final String value;

    FamilyMemberRelationEnum(int type, String value) {
        this.type = type;
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return value;
    }
}
